import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
import mutations from './mutations'
import state from './state'
<<<<<<< HEAD

//引入vuex的一个插件，能够在控制台打印日志信息
=======
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
import createLogger from 'vuex/dist/logger'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

<<<<<<< HEAD
export default new Vuex.Store({
=======
export default new  Vuex.Store({
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
	actions,
	getters,
	mutations,
	state,
<<<<<<< HEAD
	strict:debug,
	plugins:debug ? [createLogger()] : []
=======
	strict: debug,
	plugins: debug ? [createLogger()] : []
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
})